<?php
session_start();
include 'includes/functions.php';
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Singapore Exchange Simulation</title>
        <link rel="stylesheet" type="text/css" href="style.css" />
        <script type="text/javascript">
        function loginerror(para){
            //document.getElementById('errormsg').innerHTML = "Invalid Credential!";
            window.location = "login.php?"+para;
        }
    </script>
    </head>

    <body>
        <div id="header">
            <div class="logo"><img src="images/logo.jpg" title="Singapore Stock Exchange" /></div>
            <div class="description"><img src="images/logo-long.jpg" title="Singapore Stock Exchange - You Best Solution to Understand How Stock Exchange Works" /></div>
            
            <?php
            if (!preg_match('/login.php$/', $_SERVER['PHP_SELF'])){
                include 'inc-login.php';    
            }
            ?>

            <div class="nav">
                <?php include 'nav.php'; ?>
            </div>
        </div>


